package com.demo.lcgl.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;

import lombok.Getter;

@JsonInclude(Include.NON_EMPTY)
public class ResponseEnvelope<T> {

	@Getter
	private Integer code;
	@Getter
	private String message;
	@Getter
	private T data;

	public ResponseEnvelope(Integer code, String message) {
		this.code = code;
		this.message = message;
	}
    
	public ResponseEnvelope(Integer code, String message, T data) {
		this.code = code;
		this.message = message;
		this.data = data;
	}
}